#Define amount of space for displaying attribute values: SET cmDisplayHeight:2cm SET cmDisplayHeight2:4cm #read "Modelling direction" and "Reference overview settings" attributes [via corresponding expression attributes]: AVAL modDirection:"_Modelling_direction_" AVAL sREFERENCE_OVERVIEW_SETTINGS:"_REFERENCE_OVERVIEW_SETTINGS_" #define seperators for "Reference overview settings" attribute: SET sSepLine:"\n" SET sSepToken:"|" #------------------------------ # Vertical navigation overview: #------------------------------ IF (modDirection = "vertical") { SET cmX:0.08cm SET cmY:-0.75cm FONT "Arial" h:8pt color:black PEN color:darkgray outline FOR sLaneInfo in: (sREFERENCE_OVERVIEW_SETTINGS) sep: (sSepLine) { SET sLaneName:(token(sLaneInfo, 0, sSepToken)) SET cmLaneSize:("_size_" + sLaneName + "_") AVAL set-default: "2" sLaneSize: ( cmLaneSize) SET laneSize: ( (CM VAL sLaneSize)*5) SET bShowLane: "No" AVAL set-default: "No" bShowLane:("_disp_" + sLaneName + "_") IF (bShowLane = "Yes") { IF (sLaneName != "Modelling") { ATTRBOX (sLaneName) line-break:rigorous x:abs:(cmX) y:(cmY) w:l:(laneSize - 0.16cm) h:t:(cmDisplayHeight) ATTR (sLaneName) format:"%o %m" x:abs:(cmX) y:(cmY) w:l:(laneSize - 0.16cm) h:t:(cmDisplayHeight) line-break:rigorous } SET cmX:(cmX + laneSize) } } } #------------------------------- # Horizontal navigation overview #------------------------------- ELSE { FONT h:12pt bold TEXTBOX "A" x:1cm y:0.2cm SET cmY:(texty2 + 2.3cm) SET cmX:-1.6cm FONT "Arial" h:8pt color:black PEN color:darkgray outline FOR sLaneInfo in:(sREFERENCE_OVERVIEW_SETTINGS) sep:(sSepLine) { SET sLaneName:(token(sLaneInfo, 0, sSepToken)) SET cmLaneSize:("_size_" + sLaneName + "_") AVAL set-default: "2" sLaneSize: ( cmLaneSize) SET laneSize: ( (CM VAL sLaneSize)*5) SET bShowLane: "No" AVAL set-default: "No" bShowLane:("_disp_" + sLaneName + "_") IF (bShowLane = "Yes") { IF (sLaneName != "Modelling") { ATTRBOX (sLaneName) line-break:rigorous x:(cmX) y:abs:(cmY) w:l:(cmDisplayHeight2) h:(laneSize - 0.16cm) ATTR (sLaneName) format:"%o %m" x:(cmX) y:abs:(cmY) w:l:(cmDisplayHeight2) h:t:(laneSize - 0.16cm) line-break:rigorous } SET cmY: (cmY + laneSize) } } }